package org.jeecg.modules.demo.gmAdministrativeCode.service.impl;

import org.checkerframework.checker.units.qual.A;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.gmAdministrativeCode.entity.GmAdministrativeCode;
import org.jeecg.modules.demo.gmAdministrativeCode.mapper.GmAdministrativeCodeMapper;
import org.jeecg.modules.demo.gmAdministrativeCode.service.IGmAdministrativeCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 地理位置对应行政编码
 * @Author: jeecg-boot
 * @Date:   2025-09-30
 * @Version: V1.0
 */
@Service
public class GmAdministrativeCodeServiceImpl extends ServiceImpl<GmAdministrativeCodeMapper, GmAdministrativeCode> implements IGmAdministrativeCodeService {



    @Override
    public String getCodeByPosition(String town, String village) {
        return baseMapper.getCodeByPosition(town, village);
    }

    @Override
    public String queryMaxCodeByCountyAndTown(String county, String town) {
         String code = baseMapper.queryMaxCodeByCountyAndTown(county, town);
//        System.out.println("code1= " + code);
        return code;
    }
}
